package test1230am;

public class Test19 {
    public static void main(String[] args) {
        // (19)元素3和元素2互换位置
        int[] arr = {5, 3, 7, 2, 6};
        int a = arr[2];
        arr[2] = arr[3];
        arr[3] = a;
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
